import {
  ITextConfigType,
  INumberConfigType,
  TTextDefaultType,
  TNumberDefaultType,
} from '@/components/FormComponents/types';

export type TResourceContentEditData = Array<
  INumberConfigType | ITextConfigType
>;
export interface IResourceContentConfig {
  tooltip: TTextDefaultType;
  name: TTextDefaultType;
  alias: TTextDefaultType;
  width: TNumberDefaultType;
  height: TNumberDefaultType;
}

export interface IResourceContentSchema {
  editableData: TResourceContentEditData;
  config: IResourceContentConfig;
}

const ResourceContent: IResourceContentSchema = {
  editableData: [
    {
      key: 'tooltip',
      name: '提示语',
      type: 'Text',
    },
    {
      key: 'name',
      name: '标题显示名称',
      type: 'Text',
    },
    {
      key: 'alias',
      name: '名称',
      type: 'Text',
    },
    {
      key: 'width',
      name: '宽度',
      type: 'Number',
    },
    {
      key: 'height',
      name: '高度',
      type: 'Number',
    },
  ],
  config: {
    tooltip: '',
    name: '',
    alias: '',
    width: 32,
    height: 32,
  },
};

export default ResourceContent;
